import request from '@/utils/request'

export function http_logEdit_list(page,param) {
    return request({
        url: '/workdailyLog/getWorkDailyReviewListBack',
        method: 'get',
        params: {...page,...param}
    })
}

export function http_logEdit_info(param,proNo){
    return request({
        url: '/workdailyLog/getDeptListBack',
        method: 'get',
        params: {
            userId:param.userId,
            userName:param.userName,
            type:param.type,
            workDate: param.workDate,proNo
        }
    })
}


export function http_logEdit_export(param) {
    const baseUrl = process.env.VUE_APP_BASE_API
    let deptId = param.deptId == null ? '' : param.deptId
    let isResign =  param.isResign == null ? '' : param.isResign
    let userName = param.userName == null ? '' : param.userName
    let beginDate =  param.beginDate == null ? '' : param.beginDate
    let endDate =  param.endDate == null ? '' : param.endDate
    let proNo =  param.proNo == null ? '' : param.proNo
    let deptName =  param.deptName == null ? '' : param.deptName

    window.location.href= baseUrl + '/workdailyLog/exportWorkDailyReviewDetail?deptId='+deptId+'&isResign='+isResign+'&userName='+userName+'&beginDate='+beginDate+'&endDate='+endDate+'&proNo='+proNo+'&deptName='+deptName

}
